import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/index')))
    },
    {
      path: '/BusinessConfig',
      name: 'BusinessConfig',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/BusinessConfig')))
    },
    {
      path: '/adminchart',
      name: 'adminchart',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/adminchart')))
    },
    {
      path: '/CompanyProfile',
      name: 'CompanyProfile',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/CompanyProfile')))
    },
    {
      path: '/AdminOderList',
      name: 'AdminOderList',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/oder')))
    },
    {
      path: '/oderChert',
      name: 'oderChert',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/oderChert')))
    },
    {
      path: '/nwes',
      name: 'nwes',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/nwes')))
    },
    {
      path: '/newsList',
      name: 'newsList',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/newsList')))
    },
    {
      path: '/login',
      name: 'login',
      component: r => require.ensure([], () => r(require('@/components/public/login')))
    },
    {
      path: '/work',
      name: 'work',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/work')))
    },
    {
      path: '/company',
      name: 'company',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/company')))
    },
    {
      path: '/newsDitle',
      name: 'newsDitle',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/news')))
    },
    {
      path: '/map',
      name: 'map',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/map')))
    }
  ]
})
